﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BesAsm.Emgaats.Core.Commands;

namespace BesAsm.Emgaats.CoreTest
{
  public class StubCommand : IEmgaatsExtensionCommand
  {
    public List<int> _numbers;
    public List<int> _result;
    public int _number;

    public StubCommand(List<int> numberList, List<int> resultList, int number)
    {
      _numbers = numberList;
      _result = resultList;
      _number = number;
      _numbers.Add(number);
    }
    #region IEmgaatsExtensionCommand Members

    public void Execute()
    {
      _result.Add(_number);
    }

    public void Undo()
    {
      _result.Add(_number);
    }

    public string Name
    {
      get { return "StubCommand"; }
    }

    public string Description
    {
      get { return "StubCommand"; }
    }

    #endregion
  }
}
